<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../Template/AdminTemplate.xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui">

    <ui:define name="content">
        
        <h:form id="form" rendered="true">
                <p:panel id="panel" header="Create New Faqs ">
                    <p:messages id="msgs"/>
                <h:panelGrid columns="2">
                    
                    <h:outputLabel value="FaqId:" for="faqId" />
                    <p:inputText  value="#{faqControl.faq.faqId}" title="input PrizeId" required="true" requiredMessage="The EventId field is required ">
                        
                    </p:inputText>
                    
                    <h:outputLabel value="Asking:" for="asking"  />
                    
                    
                    <p:inputTextarea rows="3" cols="33" value="#{faqControl.faq.asking}" title="input Asking" required="true" requiredMessage="The Asking is required">
                        
                    </p:inputTextarea>
                      
                        
                    
                    
                    <h:outputLabel value="Description:" for="description" />
                    <p:editor value="#{faqControl.faq.answering}"/>
                    <p:commandButton value="Create" actionListener="#{prizeControl.insert()}" update="panel"/>
                    
            </h:panelGrid>
            </p:panel>
        </h:form>
       

    </ui:define>

</ui:composition>
